package com.ruoyi.drug.service;

import com.ruoyi.drug.domain.DrugPhysic;
import com.ruoyi.drug.domain.DrugPhysics;
import com.ruoyi.drug.domain.DrugRecipt;
import com.ruoyi.drug.domain.DrugReciptPhysics;

import java.util.List;

public interface IDrugReciptService {
    /**
     * 查询厂家药品列表
     *
     * @param drugPhysics
     * @return
     */
    List<DrugPhysics> selectPhysicsList(DrugPhysics drugPhysics);

    /**
     *  批量添加药品
     *
     * @param ids
     * @return
     */
    int addReciptPhysic(Long[] ids,String reciptNum);

    /**
     * 单据药品列表
     * @param
     * @return
     */
    List<DrugReciptPhysics> selectReciptPhysics(String reciptNum);

    /**
     * 暂存
     *
     * @param drugRecipt
     * @return
     */
    int addRecipt(DrugRecipt drugRecipt);

    /**
     * 提交审核
     *
     * @param drugRecipt
     * @return
     */
    int addRecipt1(DrugRecipt drugRecipt);
    /**
     * 查询单据
     *
     * @param drugRecipt
     * @return
     */
    List<DrugRecipt> selectRecipt(DrugRecipt drugRecipt);

    /**
     * 批量设置
     *
     * @param ids
     * @param drugReciptPhysics
     * @return
     */
    int updateSetting(Long[] ids,DrugReciptPhysics drugReciptPhysics);

    /**
     * 药品删除
     *
     * @param pId
     * @return
     */
    int deletePhysic(Long pId);

    int deleteRecipt(Long[] ids);

    int processRecipt(Long[] ids);

    int reciptPutIn(Long rId, String username);

    DrugRecipt selectReciptByRNum(String rNum);
}
